/*
* @Author: admin
* @Date:   2018-07-11 16:04:37
* @Last Modified by:   admin
* @Last Modified time: 2018-07-11 16:15:38
*/
const http = require('http');
const url = require('url');
const querystring = require('querystring');
const fs = require('fs');

http.createServer(function(req,res){
	var allData = '';
	req.addListener('data',function(chunk){
		allData+=chunk;
		console.log(chunk.toString());
	})

	req.addListener('end',function(){
		res.end(allData.toString());
	})
}).listen(8989);